#include <iostream>
#include <vector>
#include <sstream>
 
using namespace std;
 
int main() {
    int n;
    string tmp;
    while (cin >> n) {
        if (n == 0) return 0;
        cin.get();
        int cnt1 = 0, cnt2 = 0, total = n % 2 == 0 ? n / 2 : n / 2 + 1;
        for (int i = 1; i <= total; ++i) cout << i << " ";
        cout << "Score" << endl;
        vector<string> res;
        for (int i = 0; i < n; ++i) {
            getline(cin, tmp);
            stringstream ss;
            ss << tmp;
            while (ss >> tmp) {
                if (tmp == "good") {
                    res.emplace_back("O");
                    break;
                } else if (tmp == "no") {
                    res.emplace_back("X");
                    break;
                }
            }
        }
        if (n % 2 == 1) res.emplace_back("-");
        for (int i = 0; i < res.size(); i += 2) {
            if (res[i] == "O") cnt1++;
            cout << res[i] << " ";
        }
        cout << cnt1 << endl;
        for (int i = 1; i < res.size(); i += 2) {
            if (res[i] == "O") cnt2++;
            cout << res[i] << " ";
        }
        cout << cnt2 << endl;
    }
    return 0;
}